package com.cats.template.sys.services.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cats.template.sys.mapper.UserRolesMapper;
import com.cats.template.sys.pojo.model.UserRolesModel;
import com.cats.template.sys.services.UserRolesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author duxiaobo
 * @date 2021/9/248:09 下午
 */
@Slf4j
@Service
public class UserRolesServiceImpl extends ServiceImpl<UserRolesMapper, UserRolesModel> implements UserRolesService {

    @Autowired
    private UserRolesMapper userRolesMapper;

    @Override
    public Boolean deleteByUserId(Long userId) {
        return userRolesMapper.deleteByUserId(userId);
    }
}
